package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Align;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.TextField;

public class AddNewLocationField extends GroupControl{

	private TextField newLocationField;
	
	public AddNewLocationField(String bindID){
		//setTitle("header.AddNewLocation");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		newLocationField = new TextField ("newLocation", 20);
		}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addLabel("label.newLocationName", Align.LEFT)
		.addRow()
		.addField(newLocationField)
		;
	}
	
}

